package com.goodving.guli.bt.model;

import android.content.Context;

import com.goodving.guli.bt.lua.LuaAction;


public class LabFactoryActiveItem {
    private int mCalories;
    private int mCount;
    private LuaAction mLuaAction;
    private int mMode;
//    private ShareData mShareData;
    private int mStartTime;
    private int mStopTime;

    public LabFactoryActiveItem(int i) {
        this.mLuaAction = null;
        this.mStartTime = 0;
        this.mStopTime = 0;
        this.mMode = 0;
        this.mCalories = 0;
        this.mCount = 0;
//        this.mShareData = null;
        this.mMode = i;
    }

    public void clear() {
        this.mStartTime = 0;
        this.mStopTime = 0;
        this.mMode = 0;
        this.mCalories = 0;
        this.mCount = 0;
//        this.mShareData = null;
    }

    public int getCalories() {
        return this.mCalories;
    }

    public int getCount() {
        return this.mCount;
    }

    public int getKey() {
        return (this.mStartTime << 16) | this.mStopTime;
    }

    public LuaAction getLuaAction() {
        return this.mLuaAction;
    }

    public int getMode() {
        return this.mMode;
    }

//    public ShareData getShareData() {
//        return this.mShareData;
//    }

    public int getStart() {
        return this.mStartTime;
    }

    public int getStop() {
        return this.mStopTime;
    }

    public void setCalories(int i) {
        this.mCalories = i;
    }

    public void setCount(int i) {
        this.mCount = i;
    }

    public void setLuaAction(Context context) {
        this.mLuaAction = LuaAction.getInstance(context);
    }

    public void setMode(int i) {
        this.mMode = i;
    }

//    public void setShareData(ShareData shareData) {
//        this.mShareData = shareData;
//    }

    public void setStart(int i) {
        this.mStartTime = i;
    }

    public void setStop(int i) {
        this.mStopTime = i;
    }
}
